Skip to content

Instantly share code, notes, and snippets.

View bv's full-sized avatar
🇺🇦

Volodymyr BOBER bv

🇺🇦
View GitHub Profile

Keybase proof

I hereby claim:

  • I am bv on github.
  • I am vbober (https://keybase.io/vbober) on keybase.
  • I have a public key whose fingerprint is E54A 3E5F EAFD 3D74 4C86 F3BB 9B90 3E50 3F35 D16B

To claim this, I am signing this object:

@bv
bv / data_table_spec.rb
Created March 9, 2017 20:18
False violation of Rubocop's "Align the elements of array literals spanning multiple lines."
# here is an extract from a file in Cucumber tests:
t2 = DataTable.from([
%w(name male lastname swedish),
['aslak', true, 'hellesøy', false]
])
# Here is the rule of rubocop which is being reported as offense
# https://goo.gl/FT4cQ1
public class AssignmentOperatorsDemo {
public AssignmentOperatorsDemo() {
// Assigning Primitive Values
int j, k;
j = 10; // j gets the value 10.
j = 5; // j gets the value 5. Previous value is overwritten.
k = j; // k gets the value 5.
System.out.println("j is : " + j);
System.out.println("k is : " + k);
public class HelloWorld {
String output = "";
static HelloWorld helloObj; // Line 1
public HelloWorld() {
output = "Hello World!";
}
public String printMessage() {
return output;
class localVariableEx {
public static int a;
public static void main(String[] args) {
int b;
System.out.println("a : "+a);
System.out.println("b : "+b); //Compilation error
}}